package com.eamois.action.graph;

import java.util.Collection;

import com.eamois.action.BaseAction;
import com.eamois.domain.graph.GraphJobCard;
import com.eamois.domain.graph.ManualWorkCard;
import com.eamois.service.graph.ManualWorkCardService;
import com.eamois.util.ServiceFactory;

public class ManualWorkCardAction extends BaseAction {
	private ManualWorkCardService manualWorkCardService;
	public ManualWorkCardService getManualWorkCardService() {
		return manualWorkCardService;
	}
	public void setManualWorkCardService(ManualWorkCardService manualWorkCardService) {
		this.manualWorkCardService = manualWorkCardService;
	}
	public ManualWorkCardAction() {
		setManualWorkCardService((ManualWorkCardService) ServiceFactory.getInstance()
				.getBean("manualWorkCardService"));
	}

	public Collection<ManualWorkCard> findAll(){
		return this.getManualWorkCardService().findAll();
	}
	public Collection<ManualWorkCard> findCardByName(String name){
		return this.getManualWorkCardService().findCardByName(name);
	}
	public void save(ManualWorkCard card){
		 this.getManualWorkCardService().save(card);
	}
	public void remove(ManualWorkCard card){
		this.getManualWorkCardService().remove(card);
	}
	

}
